<?php

// 发现好店

namespace app\console\controller;

use think\Controller;
use app\console\model\FindShop as FindShopModel;

class FindShop extends Controller
{
    public function index()
    {
        // 实例化
        $model = new FindShopModel();

        $data = $model->where('status', 1)->paginate(10);

        return $this->fetch('', [
            'mate_title' => '发现好店',
            'data'       => $data,
        ]);
    }
}